import axios from "./axios";

let user={
    query:(params:any)=>{
        return axios({
            method:"GET",
            url:"list",
            params
        })
    },
    del:(id:any)=>{
        return axios({
            method:"DELETE",
            url:"list/"+id
        })
    },
    add:(data:any)=>{
        return axios({
            method:'POST',
            url:"list",
            data
        })
    }
}
export default user;